package cn.xiaoyacode.ddd.application.post.service;

import org.springframework.stereotype.Service;

/**
 * @author xieya
 * @date 2021/7/13
 */
@Service
public class PostServiceAppImpl implements PostServiceApp {
//    @Autowired
//    private PostService postService;
//
//    @Override
//    public CommonResult<PostRespDTO> posting(PostCreateReqDTO postCreateReqDTO) {
//        // 1. dto -> entity => entity
//        PostEntity post = postService.posting(PostAssembler.INSTANCE.convertPostCreate(postCreateReqDTO));
//        // 2. entity -> dto => CommonResult<DTO>
//        return CommonResult.success(PostAssembler.INSTANCE.convertResp(post));
//    }
}
